export type EnumerationValue = {
  label: string
  value: string
}

export class TreeNodeDrag {
  private mostestWidth = 80;
  private lowestWidth = 30;
  currentWidth = 50
  indragging = false;
  mouseStartX = 0;
  varTreeNodeRow: HTMLDivElement | null = null;
  changeCurrentWidth(value: number) {
    this.currentWidth = value > this.mostestWidth ? this.mostestWidth : value;
    if (this.currentWidth < this.lowestWidth) {
      this.currentWidth = this.lowestWidth;
    }
  }
  changeIndragging(value: boolean) {
    this.indragging = value;
  }
  get getCurrentWidth() {
    return this.currentWidth + '%';
  }
}